﻿using System;
using System.Collections.Generic;
using MyAMS.WebServer.Models;

namespace MyAMS.WebServer.Repositories
{
    /// <summary>
    /// 节点仓库
    /// </summary>
    public interface INodeRepository
    {
        /// <summary>
        /// 获取所有节点
        /// </summary>
        /// <returns></returns>
        IEnumerable<Node> Get();

        /// <summary>
        /// 根据编号获取节点
        /// </summary>
        /// <param name="id">编号</param>
        /// <returns>节点</returns>
        Node Get(Guid id);

        /// <summary>
        /// 根据域名获取节点
        /// </summary>
        /// <param name="domainName">域名</param>
        /// <returns>节点</returns>
        Node Get(string domainName);
    }
}
